<!doctype html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Electron</title>
    <style>
        body {
            margin: 0;
        }

        .title {
            width: 100%;
            height: 40px;
            user-select: none;
            -webkit-app-region: drag;
            background-color: #f5f5f5;
        }

        .wrapper {
            padding-left: 20px;
        }

        .label {
            margin-bottom: 5px;
        }

        .keyboard-box {
            margin: 20px 0;
        }

        .resource-box {
            margin: 20px 0;
        }

        .resource-box img {
            width: 140px;
            height: 200px;
        }

        .resource-box video {
            width: 360px;
            height: 200px;
        }

        .img-box {
            margin: 20px 0;
        }

        .img-list {}

        .img-list img {
            width: 200px;
            height: 200px;
        }
    </style>
</head>

<body>
    <!-- <div class="title">自定义标题</div> -->
    <div class="wrapper">
        <p id="info"></p>
        <div class="window-box">
            <div class="label">ipc通信告知主进程新增窗口</div>
            <button id="addWindowBtnId">新增窗口</button>
        </div>
        <div class="keyboard-box">
            <div class="label">系统键盘</div>
            <button id="openKeyboardBtnId">打开</button>
        </div>
        <div class="view-box">
            <div class="label">通过BrowserView嵌套窗口</div>
            <button id="addNestWindowBtnId">新增</button>
        </div>
        <div class="resource-box">
            <div class="label">自定义协议读取资源</div>
            <img src="myapp://src/assets/imgs/boy.png" alt="">
            <div>
                <video id="videoId" src="myapp://src/assets/videos/testVideo.mp4" controls preload="auto"></video>
            </div>
        </div>
        <div class="img-box">
            <div class="label">通过菜单栏读取文件并展示区域</div>
            <div class="img-list" id="imgListId"></div>
        </div>
    </div>
    <script src="./src/render/index.js"></script>
</body>

</html>